package studychinese.utils;

/**
 * Created by zf on 2018/1/12.
 */

public class LevelsUtil  {
   public  String  getDays(String user_targetlevel,String initlevel,String seletTime){

       int targetleavel = Integer.parseInt(user_targetlevel);
       int innitleavel = Integer.parseInt(initlevel);
       double seletTimes =  (Double.valueOf(seletTime));
       int levels=(targetleavel-innitleavel-1)*7+21;
       String day=levels/(seletTimes)+"";
       return day.substring(0,day.indexOf("."));
   }

}
